package com.example.apiusernacosseata.mapper;

import com.wu.common.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author whx
 * @date 2022/3/12
 */
@Mapper
public interface UserMapper {

    @Select("select * from user")
    List<User> findAll();

    @Update("update user set name='111' where id=#{0}")
    void updateNameById(int id);
}
